<!DOCTYPE html>
<html lang="en">
{include file="public/head" /}
  <body class="nav-md">
    <div class="container body">
      <div class="main_container">
        <!-- menu -->
        {include file="public/menu" /}
        <!-- menu -->
        <!-- top navigation -->
        {include file="public/top" /}
        <!-- /top navigation -->

        <!-- page content -->
        <div class="right_col" role="main">
          <div class="">
            <div class="page-title">
              <div class="title_left">
                <h3>商品管理</h3>
              </div>
            </div>
            <div class="clearfix"></div>
            <div class="row">
              <div class="col-md-12 col-sm-12 col-xs-12">
                <!--content-->
                <div class="x_panel">
                  <div class="x_title">
                    <h2>查看商品 <small>list items</small></h2>

                    <ul class="nav navbar-right panel_toolbox">
                      <li class="col-sm-3 col-sm-offset-1 col-xs-12">
                          <form method="get" action="{:url('admin/Items/index')}">
                            <div class="input-group">
                            <input type="text" name="title" required="required" placeholder="请输入商品名称" class="form-control col-md-4 col-xs-6">
                            <span class="input-group-btn">
                            <button type="submit" class="btn btn-success">查找</button>
                            </div>
                          </span>
                          </form>

                      </li>

                    </ul>

                    <div class="clearfix"></div>
                  </div>
                  <div class="x_content">
                    <br>
                    <div class="table-responsive">
                      <table data-toggle="table" class="table">
                        <thead>
                        <tr>
                          <th>ID</th>
                          <th>商品ID</th>
                          <th>分类</th>
                          <th>主图</th>
                          <th>商品标题</th>
                          <th>商品简介</th>
                          <th>商品原价</th>
                          <th>折扣价</th>
                          <th>优惠券</th>
                          <th>佣金比例</th>
                          <th>佣金</th>
                          <!--<th>店铺类型</th>-->
                          <th>添加时间</th>
                          <th>过期时间</th>
                          <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        {volist name="list" id="vo"}
                        <tr>
                          <td>{$vo.id}</td>
                          <td><span>{$vo.item_id}</span></td>
                          <td><span class="label label-info">{$vo.cate_text}</span></td>
                          <td><a href="{$vo.item_url}" target="_blank"><img src="{$vo.pic_url}" alt="{$vo.title}" class="img-rounded"
                                                  style="width: 120px;height: 120px;"></a></td>
                          <td><span>{$vo.title}</span></td>
                          <td><span>{$vo.introduce}</span></td>
                          <td><span>{$vo.org_price}</span></td>
                          <td><span class="label label-info">{$vo.price}</span></td>
                          <td><span>{$vo.coupon_money}</span></td>
                          <td><span>{$vo.tk_rate}</span></td>
                          <td><span class="label label-success">{$vo.tk_money}</span></td>
                          <td><span>{$vo.create_time}</span></td>
                          <td><span>{$vo.end_time}</span></td>
                          <td>
                            <button class="btn btn-danger" onclick="window.location.href='{:url('admin/Items/del','id='.$vo.id)}'">删除</button>
                          </td>
                        </tr>
                        {/volist}
                        </tbody>
                      </table>
                    </div>
                    <div class="panel">
                      <!--分页-->
                      <div class="text-center">
                        <ul class="pagination">
                          {$list->render()}
                        </ul>
                      </div>
                      <!--分页-->
                    </div>

                  </div>
                </div>
                <!--content-->
              </div>
            </div>
          </div>
        </div>
        <!-- /page content -->
        <!-- footer content -->
        {include file="public/footer" /}
        <!-- /footer content -->
      </div>
    </div>
    <!-- script -->
    <!-- jQuery -->
    <script src="__ADMIN__/vendors/jquery/dist/jquery.min.js"></script>
    <!-- Bootstrap -->
    <script src="__ADMIN__/vendors/bootstrap/dist/js/bootstrap.min.js"></script>
    <!-- FastClick -->
    <script src="__ADMIN__/vendors/fastclick/lib/fastclick.js"></script>
    <!-- NProgress -->
    <script src="__ADMIN__/vendors/nprogress/nprogress.js"></script>
    <!-- Custom Theme Scripts -->
    <script src="__ADMIN__/build/js/custom.min.js"></script>
    <script src="__ADMIN__/build/js/app.js"></script>
    <!-- script -->
  </body>
</html>
